package com.kilomob.grady.service.impl;

import java.util.concurrent.atomic.AtomicInteger;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import com.kilomob.grady.model.Book;
import com.kilomob.grady.service.BookService;

@Service("bookService")
public class BookServiceImpl implements BookService{
    private static Logger LOGGER = LoggerFactory.getLogger(BookServiceImpl.class);
    private AtomicInteger auto = new AtomicInteger();
    @Override
    public String save(Book book) {
//        LOGGER.debug("receive:"+ book.getName());
        System.out.println(auto.incrementAndGet());
        
        return "success";
    }

}
